<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-pragma">{-# LINE 1 &quot;libraries\\Win32\\Graphics\\Win32\\Key.hsc&quot; #-}</span><span>
</span><span id="line-1"></span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LINE 2 &quot;libraries\\Win32\\Graphics\\Win32\\Key.hsc&quot; #-}</span><span>
</span><span id="line-2"></span><span class="hs-pragma">{-# LANGUAGE Safe #-}</span><span>
</span><span id="line-3"></span><span>
</span><span id="line-4"></span><span class="hs-pragma">{-# LINE 6 &quot;libraries\\Win32\\Graphics\\Win32\\Key.hsc&quot; #-}</span><span>
</span><span id="line-6"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-7"></span><span class="hs-comment">-- |</span><span>
</span><span id="line-8"></span><span class="hs-comment">-- Module      :  Graphics.Win32.Key</span><span>
</span><span id="line-9"></span><span class="hs-comment">-- Copyright   :  (c) Alastair Reid, 1997-2003, 2013 shelarcy</span><span>
</span><span id="line-10"></span><span class="hs-comment">-- License     :  BSD-style (see the file libraries/base/LICENSE)</span><span>
</span><span id="line-11"></span><span class="hs-comment">--</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- Maintainer  :  Esa Ilari Vuokko &lt;ei@vuokko.info&gt;</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- Stability   :  provisional</span><span>
</span><span id="line-14"></span><span class="hs-comment">-- Portability :  portable</span><span>
</span><span id="line-15"></span><span class="hs-comment">--</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- A collection of FFI declarations for interfacing with Win32.</span><span>
</span><span id="line-17"></span><span class="hs-comment">--</span><span>
</span><span id="line-18"></span><span class="hs-comment">-----------------------------------------------------------------------------</span><span>
</span><span id="line-19"></span><span>
</span><span id="line-20"></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Graphics.Win32.Key</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-21"></span><span>
</span><span id="line-22"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Control.Monad</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">liftM</span><span class="hs-special">)</span><span>
</span><span id="line-23"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Graphics.Win32.GDI.Types</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">HWND</span><span class="hs-special">)</span><span>
</span><span id="line-24"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">System.Win32.Types</span><span>    </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">DWORD</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">UINT</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">WORD</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">ptrToMaybe</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">BOOL</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">SHORT</span><span class="hs-special">,</span><span>
</span><span id="line-25"></span><span>                               </span><span class="hs-identifier">failIfFalse_</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">failIfZero</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-26"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Control.Exception</span><span>     </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">bracket</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-27"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Foreign.Ptr</span><span>           </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">Ptr</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">nullPtr</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-28"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Foreign.C.Types</span><span>       </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">CWchar</span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-29"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Foreign.Marshal.Array</span><span> </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">allocaArray</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">peekArray</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-30"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">System.Win32.String</span><span>   </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">LPTSTR</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">LPCTSTR</span><span>
</span><span id="line-31"></span><span>                             </span><span class="hs-special">,</span><span> </span><span class="hs-identifier">withTString</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">withTStringBuffer</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">peekTString</span><span> </span><span class="hs-special">)</span><span>
</span><span id="line-32"></span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">System.Win32.Thread</span><span>   </span><span class="hs-special">(</span><span> </span><span class="hs-identifier">TID</span><span class="hs-special">,</span><span> </span><span class="hs-identifier">getCurrentThreadId</span><span> </span><span class="hs-special">)</span><span class="hs-cpp">

#include &quot;windows_cconv.h&quot;
</span><span>
</span><span id="line-36"></span><span>
</span><span id="line-37"></span><span>
</span><span id="line-38"></span><span>
</span><span id="line-39"></span><span class="hs-keyword">type</span><span> </span><span class="hs-identifier">VKey</span><span>   </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">DWORD</span><span>
</span><span id="line-40"></span><span>
</span><span id="line-41"></span><span class="hs-identifier">vK_LBUTTON</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-42"></span><span class="hs-identifier">vK_LBUTTON</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">1</span><span>
</span><span id="line-43"></span><span class="hs-identifier">vK_RBUTTON</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-44"></span><span class="hs-identifier">vK_RBUTTON</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">2</span><span>
</span><span id="line-45"></span><span class="hs-identifier">vK_CANCEL</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-46"></span><span class="hs-identifier">vK_CANCEL</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">3</span><span>
</span><span id="line-47"></span><span class="hs-identifier">vK_MBUTTON</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-48"></span><span class="hs-identifier">vK_MBUTTON</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">4</span><span>
</span><span id="line-49"></span><span class="hs-identifier">vK_BACK</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-50"></span><span class="hs-identifier">vK_BACK</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">8</span><span>
</span><span id="line-51"></span><span class="hs-identifier">vK_TAB</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-52"></span><span class="hs-identifier">vK_TAB</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">9</span><span>
</span><span id="line-53"></span><span class="hs-identifier">vK_CLEAR</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-54"></span><span class="hs-identifier">vK_CLEAR</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">12</span><span>
</span><span id="line-55"></span><span class="hs-identifier">vK_RETURN</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-56"></span><span class="hs-identifier">vK_RETURN</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">13</span><span>
</span><span id="line-57"></span><span class="hs-identifier">vK_SHIFT</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-58"></span><span class="hs-identifier">vK_SHIFT</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">16</span><span>
</span><span id="line-59"></span><span class="hs-identifier">vK_CONTROL</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-60"></span><span class="hs-identifier">vK_CONTROL</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">17</span><span>
</span><span id="line-61"></span><span class="hs-identifier">vK_MENU</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-62"></span><span class="hs-identifier">vK_MENU</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">18</span><span>
</span><span id="line-63"></span><span class="hs-identifier">vK_PAUSE</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-64"></span><span class="hs-identifier">vK_PAUSE</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">19</span><span>
</span><span id="line-65"></span><span class="hs-identifier">vK_CAPITAL</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-66"></span><span class="hs-identifier">vK_CAPITAL</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">20</span><span>
</span><span id="line-67"></span><span class="hs-identifier">vK_ESCAPE</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-68"></span><span class="hs-identifier">vK_ESCAPE</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">27</span><span>
</span><span id="line-69"></span><span class="hs-identifier">vK_SPACE</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-70"></span><span class="hs-identifier">vK_SPACE</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">32</span><span>
</span><span id="line-71"></span><span class="hs-identifier">vK_PRIOR</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-72"></span><span class="hs-identifier">vK_PRIOR</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">33</span><span>
</span><span id="line-73"></span><span class="hs-identifier">vK_NEXT</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-74"></span><span class="hs-identifier">vK_NEXT</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">34</span><span>
</span><span id="line-75"></span><span class="hs-identifier">vK_END</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-76"></span><span class="hs-identifier">vK_END</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">35</span><span>
</span><span id="line-77"></span><span class="hs-identifier">vK_HOME</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-78"></span><span class="hs-identifier">vK_HOME</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">36</span><span>
</span><span id="line-79"></span><span class="hs-identifier">vK_LEFT</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-80"></span><span class="hs-identifier">vK_LEFT</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">37</span><span>
</span><span id="line-81"></span><span class="hs-identifier">vK_UP</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-82"></span><span class="hs-identifier">vK_UP</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">38</span><span>
</span><span id="line-83"></span><span class="hs-identifier">vK_RIGHT</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-84"></span><span class="hs-identifier">vK_RIGHT</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">39</span><span>
</span><span id="line-85"></span><span class="hs-identifier">vK_DOWN</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-86"></span><span class="hs-identifier">vK_DOWN</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">40</span><span>
</span><span id="line-87"></span><span class="hs-identifier">vK_SELECT</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-88"></span><span class="hs-identifier">vK_SELECT</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">41</span><span>
</span><span id="line-89"></span><span class="hs-identifier">vK_EXECUTE</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-90"></span><span class="hs-identifier">vK_EXECUTE</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">43</span><span>
</span><span id="line-91"></span><span class="hs-identifier">vK_SNAPSHOT</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-92"></span><span class="hs-identifier">vK_SNAPSHOT</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">44</span><span>
</span><span id="line-93"></span><span class="hs-identifier">vK_INSERT</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-94"></span><span class="hs-identifier">vK_INSERT</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">45</span><span>
</span><span id="line-95"></span><span class="hs-identifier">vK_DELETE</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-96"></span><span class="hs-identifier">vK_DELETE</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">46</span><span>
</span><span id="line-97"></span><span class="hs-identifier">vK_HELP</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-98"></span><span class="hs-identifier">vK_HELP</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">47</span><span>
</span><span id="line-99"></span><span class="hs-identifier">vK_NUMPAD0</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-100"></span><span class="hs-identifier">vK_NUMPAD0</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">96</span><span>
</span><span id="line-101"></span><span class="hs-identifier">vK_NUMPAD1</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-102"></span><span class="hs-identifier">vK_NUMPAD1</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">97</span><span>
</span><span id="line-103"></span><span class="hs-identifier">vK_NUMPAD2</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-104"></span><span class="hs-identifier">vK_NUMPAD2</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">98</span><span>
</span><span id="line-105"></span><span class="hs-identifier">vK_NUMPAD3</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-106"></span><span class="hs-identifier">vK_NUMPAD3</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">99</span><span>
</span><span id="line-107"></span><span class="hs-identifier">vK_NUMPAD4</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-108"></span><span class="hs-identifier">vK_NUMPAD4</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">100</span><span>
</span><span id="line-109"></span><span class="hs-identifier">vK_NUMPAD5</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-110"></span><span class="hs-identifier">vK_NUMPAD5</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">101</span><span>
</span><span id="line-111"></span><span class="hs-identifier">vK_NUMPAD6</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-112"></span><span class="hs-identifier">vK_NUMPAD6</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">102</span><span>
</span><span id="line-113"></span><span class="hs-identifier">vK_NUMPAD7</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-114"></span><span class="hs-identifier">vK_NUMPAD7</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">103</span><span>
</span><span id="line-115"></span><span class="hs-identifier">vK_NUMPAD8</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-116"></span><span class="hs-identifier">vK_NUMPAD8</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">104</span><span>
</span><span id="line-117"></span><span class="hs-identifier">vK_NUMPAD9</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-118"></span><span class="hs-identifier">vK_NUMPAD9</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">105</span><span>
</span><span id="line-119"></span><span class="hs-identifier">vK_MULTIPLY</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-120"></span><span class="hs-identifier">vK_MULTIPLY</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">106</span><span>
</span><span id="line-121"></span><span class="hs-identifier">vK_ADD</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-122"></span><span class="hs-identifier">vK_ADD</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">107</span><span>
</span><span id="line-123"></span><span class="hs-identifier">vK_SEPARATOR</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-124"></span><span class="hs-identifier">vK_SEPARATOR</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">108</span><span>
</span><span id="line-125"></span><span class="hs-identifier">vK_SUBTRACT</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-126"></span><span class="hs-identifier">vK_SUBTRACT</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">109</span><span>
</span><span id="line-127"></span><span class="hs-identifier">vK_DECIMAL</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-128"></span><span class="hs-identifier">vK_DECIMAL</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">110</span><span>
</span><span id="line-129"></span><span class="hs-identifier">vK_DIVIDE</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-130"></span><span class="hs-identifier">vK_DIVIDE</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">111</span><span>
</span><span id="line-131"></span><span class="hs-identifier">vK_F1</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-132"></span><span class="hs-identifier">vK_F1</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">112</span><span>
</span><span id="line-133"></span><span class="hs-identifier">vK_F2</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-134"></span><span class="hs-identifier">vK_F2</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">113</span><span>
</span><span id="line-135"></span><span class="hs-identifier">vK_F3</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-136"></span><span class="hs-identifier">vK_F3</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">114</span><span>
</span><span id="line-137"></span><span class="hs-identifier">vK_F4</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-138"></span><span class="hs-identifier">vK_F4</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">115</span><span>
</span><span id="line-139"></span><span class="hs-identifier">vK_F5</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-140"></span><span class="hs-identifier">vK_F5</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">116</span><span>
</span><span id="line-141"></span><span class="hs-identifier">vK_F6</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-142"></span><span class="hs-identifier">vK_F6</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">117</span><span>
</span><span id="line-143"></span><span class="hs-identifier">vK_F7</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-144"></span><span class="hs-identifier">vK_F7</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">118</span><span>
</span><span id="line-145"></span><span class="hs-identifier">vK_F8</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-146"></span><span class="hs-identifier">vK_F8</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">119</span><span>
</span><span id="line-147"></span><span class="hs-identifier">vK_F9</span><span>                   </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-148"></span><span class="hs-identifier">vK_F9</span><span>                   </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">120</span><span>
</span><span id="line-149"></span><span class="hs-identifier">vK_F10</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-150"></span><span class="hs-identifier">vK_F10</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">121</span><span>
</span><span id="line-151"></span><span class="hs-identifier">vK_F11</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-152"></span><span class="hs-identifier">vK_F11</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">122</span><span>
</span><span id="line-153"></span><span class="hs-identifier">vK_F12</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-154"></span><span class="hs-identifier">vK_F12</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">123</span><span>
</span><span id="line-155"></span><span class="hs-identifier">vK_F13</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-156"></span><span class="hs-identifier">vK_F13</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">124</span><span>
</span><span id="line-157"></span><span class="hs-identifier">vK_F14</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-158"></span><span class="hs-identifier">vK_F14</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">125</span><span>
</span><span id="line-159"></span><span class="hs-identifier">vK_F15</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-160"></span><span class="hs-identifier">vK_F15</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">126</span><span>
</span><span id="line-161"></span><span class="hs-identifier">vK_F16</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-162"></span><span class="hs-identifier">vK_F16</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">127</span><span>
</span><span id="line-163"></span><span class="hs-identifier">vK_F17</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-164"></span><span class="hs-identifier">vK_F17</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">128</span><span>
</span><span id="line-165"></span><span class="hs-identifier">vK_F18</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-166"></span><span class="hs-identifier">vK_F18</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">129</span><span>
</span><span id="line-167"></span><span class="hs-identifier">vK_F19</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-168"></span><span class="hs-identifier">vK_F19</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">130</span><span>
</span><span id="line-169"></span><span class="hs-identifier">vK_F20</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-170"></span><span class="hs-identifier">vK_F20</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">131</span><span>
</span><span id="line-171"></span><span class="hs-identifier">vK_F21</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-172"></span><span class="hs-identifier">vK_F21</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">132</span><span>
</span><span id="line-173"></span><span class="hs-identifier">vK_F22</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-174"></span><span class="hs-identifier">vK_F22</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">133</span><span>
</span><span id="line-175"></span><span class="hs-identifier">vK_F23</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-176"></span><span class="hs-identifier">vK_F23</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">134</span><span>
</span><span id="line-177"></span><span class="hs-identifier">vK_F24</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-178"></span><span class="hs-identifier">vK_F24</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">135</span><span>
</span><span id="line-179"></span><span class="hs-identifier">vK_NUMLOCK</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-180"></span><span class="hs-identifier">vK_NUMLOCK</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">144</span><span>
</span><span id="line-181"></span><span class="hs-identifier">vK_SCROLL</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-182"></span><span class="hs-identifier">vK_SCROLL</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">145</span><span>
</span><span id="line-183"></span><span class="hs-identifier">vK_XBUTTON1</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-184"></span><span class="hs-identifier">vK_XBUTTON1</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">5</span><span>
</span><span id="line-185"></span><span class="hs-identifier">vK_XBUTTON2</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-186"></span><span class="hs-identifier">vK_XBUTTON2</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">6</span><span>
</span><span id="line-187"></span><span class="hs-identifier">vK_KANA</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-188"></span><span class="hs-identifier">vK_KANA</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">21</span><span>
</span><span id="line-189"></span><span class="hs-identifier">vK_HANGUL</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-190"></span><span class="hs-identifier">vK_HANGUL</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">21</span><span>
</span><span id="line-191"></span><span class="hs-identifier">vK_JUNJA</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-192"></span><span class="hs-identifier">vK_JUNJA</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">23</span><span>
</span><span id="line-193"></span><span class="hs-identifier">vK_FINAL</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-194"></span><span class="hs-identifier">vK_FINAL</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">24</span><span>
</span><span id="line-195"></span><span class="hs-identifier">vK_HANJA</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-196"></span><span class="hs-identifier">vK_HANJA</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">25</span><span>
</span><span id="line-197"></span><span class="hs-identifier">vK_KANJI</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-198"></span><span class="hs-identifier">vK_KANJI</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">25</span><span>
</span><span id="line-199"></span><span class="hs-identifier">vK_CONVERT</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-200"></span><span class="hs-identifier">vK_CONVERT</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">28</span><span>
</span><span id="line-201"></span><span class="hs-identifier">vK_NONCONVERT</span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-202"></span><span class="hs-identifier">vK_NONCONVERT</span><span>           </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">29</span><span>
</span><span id="line-203"></span><span class="hs-identifier">vK_ACCEPT</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-204"></span><span class="hs-identifier">vK_ACCEPT</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">30</span><span>
</span><span id="line-205"></span><span class="hs-identifier">vK_MODECHANGE</span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-206"></span><span class="hs-identifier">vK_MODECHANGE</span><span>           </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">31</span><span>
</span><span id="line-207"></span><span class="hs-identifier">vK_PRINT</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-208"></span><span class="hs-identifier">vK_PRINT</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">42</span><span>
</span><span id="line-209"></span><span class="hs-identifier">vK_APPS</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-210"></span><span class="hs-identifier">vK_APPS</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">93</span><span>
</span><span id="line-211"></span><span class="hs-identifier">vK_SLEEP</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-212"></span><span class="hs-identifier">vK_SLEEP</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">95</span><span>
</span><span id="line-213"></span><span class="hs-identifier">vK_LWIN</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-214"></span><span class="hs-identifier">vK_LWIN</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">91</span><span>
</span><span id="line-215"></span><span class="hs-identifier">vK_RWIN</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-216"></span><span class="hs-identifier">vK_RWIN</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">92</span><span>
</span><span id="line-217"></span><span class="hs-identifier">vK_LSHIFT</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-218"></span><span class="hs-identifier">vK_LSHIFT</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">160</span><span>
</span><span id="line-219"></span><span class="hs-identifier">vK_RSHIFT</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-220"></span><span class="hs-identifier">vK_RSHIFT</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">161</span><span>
</span><span id="line-221"></span><span class="hs-identifier">vK_LCONTROL</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-222"></span><span class="hs-identifier">vK_LCONTROL</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">162</span><span>
</span><span id="line-223"></span><span class="hs-identifier">vK_RCONTROL</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-224"></span><span class="hs-identifier">vK_RCONTROL</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">163</span><span>
</span><span id="line-225"></span><span class="hs-identifier">vK_LMENU</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-226"></span><span class="hs-identifier">vK_LMENU</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">164</span><span>
</span><span id="line-227"></span><span class="hs-identifier">vK_RMENU</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-228"></span><span class="hs-identifier">vK_RMENU</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">165</span><span>
</span><span id="line-229"></span><span class="hs-identifier">vK_BROWSER_BACK</span><span>         </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-230"></span><span class="hs-identifier">vK_BROWSER_BACK</span><span>         </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">166</span><span>
</span><span id="line-231"></span><span class="hs-identifier">vK_BROWSER_FORWARD</span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-232"></span><span class="hs-identifier">vK_BROWSER_FORWARD</span><span>      </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">167</span><span>
</span><span id="line-233"></span><span class="hs-identifier">vK_BROWSER_REFRESH</span><span>      </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-234"></span><span class="hs-identifier">vK_BROWSER_REFRESH</span><span>      </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">168</span><span>
</span><span id="line-235"></span><span class="hs-identifier">vK_BROWSER_STOP</span><span>         </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-236"></span><span class="hs-identifier">vK_BROWSER_STOP</span><span>         </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">169</span><span>
</span><span id="line-237"></span><span class="hs-identifier">vK_BROWSER_SEARCH</span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-238"></span><span class="hs-identifier">vK_BROWSER_SEARCH</span><span>       </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">170</span><span>
</span><span id="line-239"></span><span class="hs-identifier">vK_BROWSER_FAVORITES</span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-240"></span><span class="hs-identifier">vK_BROWSER_FAVORITES</span><span>    </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">171</span><span>
</span><span id="line-241"></span><span class="hs-identifier">vK_BROWSER_HOME</span><span>         </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-242"></span><span class="hs-identifier">vK_BROWSER_HOME</span><span>         </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">172</span><span>
</span><span id="line-243"></span><span class="hs-identifier">vK_VOLUME_MUTE</span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-244"></span><span class="hs-identifier">vK_VOLUME_MUTE</span><span>          </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">173</span><span>
</span><span id="line-245"></span><span class="hs-identifier">vK_VOLUME_DOWN</span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-246"></span><span class="hs-identifier">vK_VOLUME_DOWN</span><span>          </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">174</span><span>
</span><span id="line-247"></span><span class="hs-identifier">vK_VOLUME_UP</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-248"></span><span class="hs-identifier">vK_VOLUME_UP</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">175</span><span>
</span><span id="line-249"></span><span class="hs-identifier">vK_MEDIA_NEXT_TRACK</span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-250"></span><span class="hs-identifier">vK_MEDIA_NEXT_TRACK</span><span>     </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">176</span><span>
</span><span id="line-251"></span><span class="hs-identifier">vK_MEDIA_PREV_TRACK</span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-252"></span><span class="hs-identifier">vK_MEDIA_PREV_TRACK</span><span>     </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">177</span><span>
</span><span id="line-253"></span><span class="hs-identifier">vK_MEDIA_STOP</span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-254"></span><span class="hs-identifier">vK_MEDIA_STOP</span><span>           </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">178</span><span>
</span><span id="line-255"></span><span class="hs-identifier">vK_MEDIA_PLAY_PAUSE</span><span>     </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-256"></span><span class="hs-identifier">vK_MEDIA_PLAY_PAUSE</span><span>     </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">179</span><span>
</span><span id="line-257"></span><span class="hs-identifier">vK_LAUNCH_MAIL</span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-258"></span><span class="hs-identifier">vK_LAUNCH_MAIL</span><span>          </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">180</span><span>
</span><span id="line-259"></span><span class="hs-identifier">vK_LAUNCH_MEDIA_SELECT</span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-260"></span><span class="hs-identifier">vK_LAUNCH_MEDIA_SELECT</span><span>  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">181</span><span>
</span><span id="line-261"></span><span class="hs-identifier">vK_LAUNCH_APP1</span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-262"></span><span class="hs-identifier">vK_LAUNCH_APP1</span><span>          </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">182</span><span>
</span><span id="line-263"></span><span class="hs-identifier">vK_LAUNCH_APP2</span><span>          </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-264"></span><span class="hs-identifier">vK_LAUNCH_APP2</span><span>          </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">183</span><span>
</span><span id="line-265"></span><span class="hs-identifier">vK_OEM_1</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-266"></span><span class="hs-identifier">vK_OEM_1</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">186</span><span>
</span><span id="line-267"></span><span class="hs-identifier">vK_OEM_PLUS</span><span>             </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-268"></span><span class="hs-identifier">vK_OEM_PLUS</span><span>             </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">187</span><span>
</span><span id="line-269"></span><span class="hs-identifier">vK_OEM_COMMA</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-270"></span><span class="hs-identifier">vK_OEM_COMMA</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">188</span><span>
</span><span id="line-271"></span><span class="hs-identifier">vK_OEM_MINUS</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-272"></span><span class="hs-identifier">vK_OEM_MINUS</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">189</span><span>
</span><span id="line-273"></span><span class="hs-identifier">vK_OEM_PERIOD</span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-274"></span><span class="hs-identifier">vK_OEM_PERIOD</span><span>           </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">190</span><span>
</span><span id="line-275"></span><span class="hs-identifier">vK_OEM_2</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-276"></span><span class="hs-identifier">vK_OEM_2</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">191</span><span>
</span><span id="line-277"></span><span class="hs-identifier">vK_OEM_3</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-278"></span><span class="hs-identifier">vK_OEM_3</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">192</span><span>
</span><span id="line-279"></span><span class="hs-identifier">vK_OEM_4</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-280"></span><span class="hs-identifier">vK_OEM_4</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">219</span><span>
</span><span id="line-281"></span><span class="hs-identifier">vK_OEM_5</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-282"></span><span class="hs-identifier">vK_OEM_5</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">220</span><span>
</span><span id="line-283"></span><span class="hs-identifier">vK_OEM_6</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-284"></span><span class="hs-identifier">vK_OEM_6</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">221</span><span>
</span><span id="line-285"></span><span class="hs-identifier">vK_OEM_7</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-286"></span><span class="hs-identifier">vK_OEM_7</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">222</span><span>
</span><span id="line-287"></span><span class="hs-identifier">vK_OEM_8</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-288"></span><span class="hs-identifier">vK_OEM_8</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">223</span><span>
</span><span id="line-289"></span><span class="hs-identifier">vK_OEM_102</span><span>              </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-290"></span><span class="hs-identifier">vK_OEM_102</span><span>              </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">226</span><span>
</span><span id="line-291"></span><span class="hs-identifier">vK_PROCESSKEY</span><span>           </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-292"></span><span class="hs-identifier">vK_PROCESSKEY</span><span>           </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">229</span><span>
</span><span id="line-293"></span><span class="hs-identifier">vK_PACKET</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-294"></span><span class="hs-identifier">vK_PACKET</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">231</span><span>
</span><span id="line-295"></span><span class="hs-identifier">vK_ATTN</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-296"></span><span class="hs-identifier">vK_ATTN</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">246</span><span>
</span><span id="line-297"></span><span class="hs-identifier">vK_CRSEL</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-298"></span><span class="hs-identifier">vK_CRSEL</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">247</span><span>
</span><span id="line-299"></span><span class="hs-identifier">vK_EXSEL</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-300"></span><span class="hs-identifier">vK_EXSEL</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">248</span><span>
</span><span id="line-301"></span><span class="hs-identifier">vK_EREOF</span><span>                </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-302"></span><span class="hs-identifier">vK_EREOF</span><span>                </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">249</span><span>
</span><span id="line-303"></span><span class="hs-identifier">vK_PLAY</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-304"></span><span class="hs-identifier">vK_PLAY</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">250</span><span>
</span><span id="line-305"></span><span class="hs-identifier">vK_ZOOM</span><span>                 </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-306"></span><span class="hs-identifier">vK_ZOOM</span><span>                 </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">251</span><span>
</span><span id="line-307"></span><span class="hs-identifier">vK_NONAME</span><span>               </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-308"></span><span class="hs-identifier">vK_NONAME</span><span>               </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">252</span><span>
</span><span id="line-309"></span><span class="hs-identifier">vK_PA1</span><span>                  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-310"></span><span class="hs-identifier">vK_PA1</span><span>                  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">253</span><span>
</span><span id="line-311"></span><span class="hs-identifier">vK_OEM_CLEAR</span><span>            </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span>
</span><span id="line-312"></span><span class="hs-identifier">vK_OEM_CLEAR</span><span>            </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">254</span><span>
</span><span id="line-313"></span><span>
</span><span id="line-314"></span><span class="hs-pragma">{-# LINE 179 &quot;libraries\\Win32\\Graphics\\Win32\\Key.hsc&quot; #-}</span><span>
</span><span id="line-179"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h VkKeyScanExW&quot;</span><span>
</span><span id="line-180"></span><span>    </span><span class="hs-identifier">c_VkKeyScanEx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">CWchar</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">SHORT</span><span>
</span><span id="line-181"></span><span>
</span><span id="line-182"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h MapVirtualKeyW&quot;</span><span>
</span><span id="line-183"></span><span>    </span><span class="hs-identifier">c_MapVirtualKey</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">UINT</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">UINT</span><span>
</span><span id="line-184"></span><span>
</span><span id="line-185"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h MapVirtualKeyExW&quot;</span><span>
</span><span id="line-186"></span><span>    </span><span class="hs-identifier">c_MapVirtualKeyEx</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">VKey</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">UINT</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">UINT</span><span>
</span><span id="line-187"></span><span>
</span><span id="line-188"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h EnableWindow&quot;</span><span>
</span><span id="line-189"></span><span>  </span><span class="hs-identifier">enableWindow</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">HWND</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">Bool</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">Bool</span><span>
</span><span id="line-190"></span><span>
</span><span id="line-191"></span><span class="hs-identifier">getActiveWindow</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Maybe</span><span> </span><span class="hs-identifier">HWND</span><span class="hs-special">)</span><span>
</span><span id="line-192"></span><span class="hs-identifier">getActiveWindow</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">liftM</span><span> </span><span class="hs-identifier">ptrToMaybe</span><span> </span><span class="hs-identifier">c_GetActiveWindow</span><span>
</span><span id="line-193"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetActiveWindow&quot;</span><span>
</span><span id="line-194"></span><span>  </span><span class="hs-identifier">c_GetActiveWindow</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">HWND</span><span>
</span><span id="line-195"></span><span>
</span><span id="line-196"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetAsyncKeyState&quot;</span><span>
</span><span id="line-197"></span><span>  </span><span class="hs-identifier">getAsyncKeyState</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Int</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">WORD</span><span>
</span><span id="line-198"></span><span>
</span><span id="line-199"></span><span class="hs-identifier">getFocus</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Maybe</span><span> </span><span class="hs-identifier">HWND</span><span class="hs-special">)</span><span>
</span><span id="line-200"></span><span class="hs-identifier">getFocus</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">liftM</span><span> </span><span class="hs-identifier">ptrToMaybe</span><span> </span><span class="hs-identifier">c_GetFocus</span><span>
</span><span id="line-201"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetFocus&quot;</span><span>
</span><span id="line-202"></span><span>  </span><span class="hs-identifier">c_GetFocus</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">HWND</span><span>
</span><span id="line-203"></span><span>
</span><span id="line-204"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetKBCodePage&quot;</span><span>
</span><span id="line-205"></span><span>  </span><span class="hs-identifier">getKBCodePage</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">UINT</span><span>
</span><span id="line-206"></span><span>
</span><span id="line-207"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h IsWindowEnabled&quot;</span><span>
</span><span id="line-208"></span><span>  </span><span class="hs-identifier">isWindowEnabled</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">HWND</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">Bool</span><span>
</span><span id="line-209"></span><span>
</span><span id="line-210"></span><span class="hs-identifier">getCurrentKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">HKL</span><span>
</span><span id="line-211"></span><span class="hs-identifier">getCurrentKeyboardLayout</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-212"></span><span>    </span><span class="hs-identifier">tid</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">getCurrentThreadId</span><span>
</span><span id="line-213"></span><span>    </span><span class="hs-identifier">c_GetKeyboardLayout</span><span> </span><span class="hs-identifier">tid</span><span>
</span><span id="line-214"></span><span>
</span><span id="line-215"></span><span class="hs-identifier">getKeyboardLayoutList</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">[</span><span class="hs-identifier">HKL</span><span class="hs-special">]</span><span>
</span><span id="line-216"></span><span class="hs-identifier">getKeyboardLayoutList</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-217"></span><span>    </span><span class="hs-identifier">len'</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">failIfZero</span><span> </span><span class="hs-string">&quot;GetKeyboardLayoutList&quot;</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-identifier">c_GetKeyboardLayoutList</span><span> </span><span class="hs-number">0</span><span> </span><span class="hs-identifier">nullPtr</span><span>
</span><span id="line-218"></span><span>    </span><span class="hs-keyword">let</span><span> </span><span class="hs-identifier">len</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">fromIntegral</span><span> </span><span class="hs-identifier">len'</span><span>
</span><span id="line-219"></span><span>    </span><span class="hs-identifier">allocaArray</span><span> </span><span class="hs-identifier">len</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-identifier">buf</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-220"></span><span>        </span><span class="hs-identifier">_</span><span> </span><span class="hs-glyph">&lt;-</span><span> </span><span class="hs-identifier">failIfZero</span><span> </span><span class="hs-string">&quot;GetKeyboardLayoutList&quot;</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-identifier">c_GetKeyboardLayoutList</span><span> </span><span class="hs-identifier">len</span><span>  </span><span class="hs-identifier">buf</span><span>
</span><span id="line-221"></span><span>        </span><span class="hs-identifier">peekArray</span><span> </span><span class="hs-identifier">len</span><span> </span><span class="hs-identifier">buf</span><span>
</span><span id="line-222"></span><span>
</span><span id="line-223"></span><span class="hs-identifier">getKeyboardLayoutName</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">String</span><span>
</span><span id="line-224"></span><span class="hs-identifier">getKeyboardLayoutName</span><span>
</span><span id="line-225"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">withTStringBuffer</span><span> </span><span class="hs-number">256</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-identifier">buf</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-226"></span><span>       </span><span class="hs-identifier">failIfFalse_</span><span> </span><span class="hs-string">&quot;GetKeyboardLayoutName&quot;</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-identifier">c_GetKeyboardLayoutName</span><span> </span><span class="hs-identifier">buf</span><span>
</span><span id="line-227"></span><span>       </span><span class="hs-identifier">peekTString</span><span> </span><span class="hs-identifier">buf</span><span>
</span><span id="line-228"></span><span>
</span><span id="line-229"></span><span class="hs-identifier">withLoadKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">a</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">a</span><span>
</span><span id="line-230"></span><span class="hs-identifier">withLoadKeyboardLayout</span><span> </span><span class="hs-identifier">flag</span><span> </span><span class="hs-identifier">io</span><span>
</span><span id="line-231"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">withTStringBuffer</span><span> </span><span class="hs-number">256</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-identifier">buf</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-keyword">do</span><span>
</span><span id="line-232"></span><span>       </span><span class="hs-identifier">failIfFalse_</span><span> </span><span class="hs-string">&quot;GetKeyboardLayoutName&quot;</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-identifier">c_GetKeyboardLayoutName</span><span> </span><span class="hs-identifier">buf</span><span>
</span><span id="line-233"></span><span>       </span><span class="hs-identifier">bracket</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">c_LoadKeyboardLayout</span><span> </span><span class="hs-identifier">buf</span><span> </span><span class="hs-identifier">flag</span><span class="hs-special">)</span><span>
</span><span id="line-234"></span><span>               </span><span class="hs-identifier">unloadKeyboardLayout</span><span>
</span><span id="line-235"></span><span>               </span><span class="hs-identifier">io</span><span>
</span><span id="line-236"></span><span>
</span><span id="line-237"></span><span class="hs-identifier">withLoadKeyboardLayoutWithName</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">String</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">a</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">a</span><span>
</span><span id="line-238"></span><span class="hs-identifier">withLoadKeyboardLayoutWithName</span><span> </span><span class="hs-identifier">str</span><span> </span><span class="hs-identifier">flag</span><span> </span><span class="hs-identifier">io</span><span>
</span><span id="line-239"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">withTString</span><span> </span><span class="hs-identifier">str</span><span> </span><span class="hs-operator">$</span><span> </span><span class="hs-glyph">\</span><span class="hs-identifier">c_str</span><span> </span><span class="hs-glyph">-&gt;</span><span>
</span><span id="line-240"></span><span>      </span><span class="hs-identifier">bracket</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">c_LoadKeyboardLayout</span><span> </span><span class="hs-identifier">c_str</span><span> </span><span class="hs-identifier">flag</span><span class="hs-special">)</span><span>
</span><span id="line-241"></span><span>              </span><span class="hs-identifier">unloadKeyboardLayout</span><span>
</span><span id="line-242"></span><span>              </span><span class="hs-identifier">io</span><span>
</span><span id="line-243"></span><span>
</span><span id="line-244"></span><span class="hs-identifier">unloadKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-245"></span><span class="hs-identifier">unloadKeyboardLayout</span><span>
</span><span id="line-246"></span><span>  </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">failIfFalse_</span><span> </span><span class="hs-string">&quot;UnloadKeyboardLayout&quot;</span><span> </span><span class="hs-operator">.</span><span> </span><span class="hs-identifier">c_UnloadKeyboardLayout</span><span>
</span><span id="line-247"></span><span>
</span><span id="line-248"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetKeyboardLayout&quot;</span><span>
</span><span id="line-249"></span><span>    </span><span class="hs-identifier">c_GetKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">TID</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">HKL</span><span>
</span><span id="line-250"></span><span>
</span><span id="line-251"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetKeyboardLayoutList&quot;</span><span>
</span><span id="line-252"></span><span>    </span><span class="hs-identifier">c_GetKeyboardLayoutList</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">Int</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">Ptr</span><span> </span><span class="hs-identifier">HKL</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">UINT</span><span>
</span><span id="line-253"></span><span>
</span><span id="line-254"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h GetKeyboardLayoutNameW&quot;</span><span>
</span><span id="line-255"></span><span>    </span><span class="hs-identifier">c_GetKeyboardLayoutName</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">LPTSTR</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">BOOL</span><span>
</span><span id="line-256"></span><span>
</span><span id="line-257"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h LoadKeyboardLayoutW&quot;</span><span>
</span><span id="line-258"></span><span>    </span><span class="hs-identifier">c_LoadKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">LPCTSTR</span><span>  </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">HKL</span><span>
</span><span id="line-259"></span><span>
</span><span id="line-260"></span><span class="hs-keyword">foreign</span><span> </span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">WINDOWS_CCONV</span><span> </span><span class="hs-keyword">unsafe</span><span> </span><span class="hs-string">&quot;windows.h UnloadKeyboardLayout&quot;</span><span>
</span><span id="line-261"></span><span>    </span><span class="hs-identifier">c_UnloadKeyboardLayout</span><span> </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="hs-identifier">IO</span><span> </span><span class="hs-identifier">BOOL</span><span>
</span><span id="line-262"></span><span>
</span><span id="line-263"></span><span class="hs-keyword">type</span><span> </span><span class="hs-identifier">HKL</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">Ptr</span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-264"></span><span>
</span><span id="line-265"></span><span class="hs-keyword">type</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">UINT</span><span>
</span><span id="line-266"></span><span>
</span><span id="line-267"></span><span class="hs-identifier">kLF_ACTIVATE</span><span>       </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-268"></span><span class="hs-identifier">kLF_ACTIVATE</span><span>       </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">1</span><span>
</span><span id="line-269"></span><span class="hs-identifier">kLF_NOTELLSHELL</span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-270"></span><span class="hs-identifier">kLF_NOTELLSHELL</span><span>    </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">128</span><span>
</span><span id="line-271"></span><span class="hs-identifier">kLF_REORDER</span><span>        </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-272"></span><span class="hs-identifier">kLF_REORDER</span><span>        </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">8</span><span>
</span><span id="line-273"></span><span class="hs-identifier">kLF_REPLACELANG</span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-274"></span><span class="hs-identifier">kLF_REPLACELANG</span><span>    </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">16</span><span>
</span><span id="line-275"></span><span class="hs-identifier">kLF_SUBSTITUTE_OK</span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-276"></span><span class="hs-identifier">kLF_SUBSTITUTE_OK</span><span>  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">2</span><span>
</span><span id="line-277"></span><span class="hs-identifier">kLF_SETFORPROCESS</span><span>  </span><span class="hs-glyph">::</span><span> </span><span class="hs-identifier">KeyLayoutFlags</span><span>
</span><span id="line-278"></span><span class="hs-identifier">kLF_SETFORPROCESS</span><span>  </span><span class="hs-glyph">=</span><span>  </span><span class="hs-number">256</span><span>
</span><span id="line-279"></span><span>
</span><span id="line-280"></span><span class="hs-pragma">{-# LINE 275 &quot;libraries\\Win32\\Graphics\\Win32\\Key.hsc&quot; #-}</span><span>
</span><span id="line-275"></span></pre></body></html>